<html>
<head>
</head>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
function blub(){

	$.getJSON("routeProxy.php", function(data){
		
		for (i = 0; i < data.routes.length; i++) {
			var test = data.routes[0].legs[i].steps;
			for(j = 0; j< test.length; j++){
				console.log(test[j].html_instructions);
				document.write(test[j].html_instructions+"<br>");
			}
		}
		

		

	 });


}

</script>
<body onLoad="blub()">

</body>
</html>